//
//  Message.swift
//  DongBaoDemo
//
//  Created by 陈志勇 on 2018/8/5.
//  Copyright © 2018年 陈志勇. All rights reserved.
//

import HandyJSON

struct Message: HandyJSON {
    enum MessageType: String, HandyJSONEnum {
        case shoot = "射门"
        case over = "比赛结束"
        case start = "比赛开始"
        case substitution = "换人"
        case interval = "中场休息"
        case secondHalfStart =  "下半场开始"
        case pause = "暂停"
        case foul = "犯规"
        case yellowCard = "黄牌"
        case redCard = "红牌"
    }
    
    enum TeamType: String, HandyJSONEnum {
        case team1 = "1"
        case team2 = "2"
    }
    
    var id: String?
    var mid: String?
    var member_avator: String?
    var member_name: String?
    var team_type: TeamType?
    var consume_time: String?
    var message_type: MessageType?
    var content: String?
    var change_id: String?
    var change_avator: String?
    var ctime: String?
    var is_score: String?
    var score_data: String?
}

//struct RaceMessage: HandyJSON {
////    enum MessageType: String, HandyJSONEnum {
////        case Shoot = "射门"
////    }
//
//    var id: String?
//    var mid: String?
//    var member_avator: String?
//    var member_name: String?
//    var team_type: String?
//    var consume_time: String?
//    var message_type: String?
//    var content: String?
//    var change_id: String?
//    var change_avator: String
//    var ctime: String?
//    var is_score: String?
//    var score_data: String?
//
//}
